package com.o2o.dao;

import com.o2o.entity.ProductCategory;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * package_name:com.o2o.dao
 * Author:徐亚远
 * Date:2019/12/10 17:00
 * 项目名:o2o
 * Desription:
 **/
public interface ProductCategoryDao {
    /*
     * 通过商品id 查询店铺类别
     * @param Long
     *       shopId
     *       @return List<ProductCategory>
     * */
    List<ProductCategory> queryProductCategoryList(Long shopId);
    /*
    *批量新增商品类别
    * @param productCategoryList
    * @return
    * */
    int batchInsertProductCategory(List<ProductCategory> productCategory);
    /*
    *@param productCategoryId
    * @param shopId
    * @return int
    * */
    int deleteProductCategory(@Param("productCategoryId") Long productCategoryId, @Param("shopId") Long shopId);
}
